<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="edu.nju.cineplex.util.MovieSalePieChart"%>
<%@ page import="java.io.PrintWriter"%>
<jsp:include page="header.jsp"></jsp:include>
<div class="container">
	<div class="row">
		<div class="offset1 span10 offset1">
			<%
				MovieSalePieChart pie = new MovieSalePieChart();
				String filename = pie.generatePieChart(request, session,
						new PrintWriter(out));
				String graphURL = request.getContextPath()
						+ "/servlet/DisplayChart?filename=" + filename;
			%>
			<P ALIGN="CENTER">
				<img src="<%=graphURL%>" width=500 height=300 border=0
					usemap="<%=filename%>">
			</P>
			<div style="text-align:center">
				<a href="javascript:history.back(); " class="btn"> 返回 </a>
			</div>
		</div>
	</div>
</div>
<jsp:include page="footer.jsp"></jsp:include>